package com.jinsilu.freight.http.request;

import com.hjq.http.config.IRequestApi;
import com.hjq.http.config.IRequestType;
import com.hjq.http.model.BodyType;

/**
 * 添加用户银行卡信息
 *
 * @author yangyang
 * @time 2020-11-20 12:47
 */
public class EditBankInfoApi implements IRequestApi, IRequestType {

    private String backCardId;
    private String bankName; // 银行名称
    private String bankId; // 银行ID
    private String accountHolder; // 开户人
    private String identityCard; // 开户人身份证
    private String bankCard; // 银行卡号
    private String cardType; // 卡类型 默认 借记卡
    private Integer defaultState; // 是否默认 默认标识（1非默认；0默认)
    private String identityCardFrontImg;
    private String identityCardReverseImg;
    private String accountHolderPhone;
    private Integer isSelf; // 是否本人 1是本人 0不是本人

    @Override
    public String getApi() {
        return "api/bank/card/"+backCardId;
    }

    @Override
    public BodyType getType() {
        return BodyType.JSON;
    }

    public EditBankInfoApi setBankId(String bankId) {
        this.bankId = bankId;
        return this;
    }

    public EditBankInfoApi setCardType(String cardType) {
        this.cardType = cardType;
        return this;
    }

    public EditBankInfoApi setBankName(String bankName) {
        this.bankName = bankName;
        return this;
    }

    public EditBankInfoApi setAccountHolder(String accountHolder) {
        this.accountHolder = accountHolder;
        return this;
    }

    public EditBankInfoApi setIdentityCard(String identityCard) {
        this.identityCard = identityCard;
        return this;
    }

    public EditBankInfoApi setBankCard(String bankCard) {
        this.bankCard = bankCard;
        return this;
    }

    public EditBankInfoApi setDefaultState(Integer defaultState) {
        this.defaultState = defaultState;
        return this;
    }

    public EditBankInfoApi setFrontImage(String frontImage) {
        this.identityCardFrontImg = frontImage;
        return this;
    }

    public EditBankInfoApi setBackImage(String backImage) {
        this.identityCardReverseImg = backImage;
        return this;
    }

    public EditBankInfoApi setRecipientPhone(String recipientPhone) {
        this.accountHolderPhone = recipientPhone;
        return this;
    }

    public EditBankInfoApi setIsSelf(Integer isSelf) {
        this.isSelf = isSelf;
        return this;
    }

    public EditBankInfoApi setBankCardId(String backCardId) {
        this.backCardId = backCardId;
        return this;
    }

    public String getBackCardId() {
        return backCardId;
    }

    public void setBackCardId(String backCardId) {
        this.backCardId = backCardId;
    }
}
